"use strict";
{
    //1. 类型别名
    let sum = 100;
    let sum2 = 200;
    let ours = [
        {
            name: '张三',
            age: 18
        },
        {
            name: '李四',
            age: 28
        }
    ];
    let str = 'color';
    //4. 获取函数返回值的类型
    function test(a, b) {
        return 20;
    }
}
{
    //变量类型的声明
    //使用 axios
    axios.get('http://api.xiaohigh.com/heros');
    axios.post('http://api.xiaohigh.com/heros');
    //
}
{
    //内置对象支持 Date  Math
    // let b: Boolean = true;
    // let b2: boolean = true;
    // let str: String = 'xxx';
    let d = new Date();
    //BOM 与 DOM 也支持
    window.onresize = function () {
    };
}
